package com.entor.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Value("${server.port}")
    private int port;

    @GetMapping("/hello")
    public String hello(String name){
        return "你好："+name+"！，当前服务器端口："+port;
    }
}
